Home:ALL Converter>IBatis sqlmap resources path working in windows not in unix

IBatis sqlmap resources path working in windows not in unix

Ask Time:2019-10-07T21:51:45         Author:Fredie Thomas

Json Formatter

Java upgrade and wildfly upgrade for an existing code base are done. On Windows with wildfly server, the application is getting deployed properly. On Unix with wildfly server, application deployment fails as:

Error parsing XPath '/sqlMapConfig/sqlMap'.  
Cause: java.io.IOException: Could not find resource ..\..\WEB-INF\lib\configs\commonSql.xml

Tried the different combinations of relative address.Assumption is that ibatis looks in META-INF\classes for the configs.

The config file has below entry:

sqlMap resource="..\\..\WEB-INF\lib\configs\commonSql.xml

Expected both windows and Unix would same Behavior with the same server.

Author:Fredie Thomas,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/58270998/ibatis-sqlmap-resources-path-working-in-windows-not-in-unix
yy